
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGSpotLight.h>
#include <OpenSG/OSGSpotLightBase.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_SpotLight_dump_overloads_0_2, dump, 0, 2)


}// namespace


// Module ======================================================================
void Export_src_pyste_gen_SpotLight()
{
    scope* osg_SpotLightBase_scope = new scope(
    class_< osg::SpotLightBase, bases< osg::PointLight > , boost::noncopyable >("SpotLightBase", no_init)
//        .def_readonly("DirectionFieldMask", &osg::SpotLightBase::DirectionFieldMask)
//        .def_readonly("SpotExponentFieldMask", &osg::SpotLightBase::SpotExponentFieldMask)
//        .def_readonly("SpotCutOffFieldMask", &osg::SpotLightBase::SpotCutOffFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::SpotLightBase::MTInfluenceMask)
        .def("getClassType", &osg::SpotLightBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::SpotLightBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::SpotLightBase::*)() )&osg::SpotLightBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::SpotLightBase::*)() const)&osg::SpotLightBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::SpotLightBase::getContainerSize)
        //.def("getDirection", (osg::Vec3f& (osg::SpotLightBase::*)() )&osg::SpotLightBase::getDirection, return_value_policy< copy_const_reference >())
        .def("getDirection", (const osg::Vec3f& (osg::SpotLightBase::*)() const)&osg::SpotLightBase::getDirection, return_value_policy< copy_const_reference >())
        //.def("getSpotExponent", (osg::Real32& (osg::SpotLightBase::*)() )&osg::SpotLightBase::getSpotExponent, return_value_policy< copy_const_reference >())
        .def("getSpotExponent", (const osg::Real32& (osg::SpotLightBase::*)() const)&osg::SpotLightBase::getSpotExponent, return_value_policy< copy_const_reference >())
        //.def("getSpotCutOff", (osg::Real32& (osg::SpotLightBase::*)() )&osg::SpotLightBase::getSpotCutOff, return_value_policy< copy_const_reference >())
        .def("getSpotCutOff", (const osg::Real32& (osg::SpotLightBase::*)() const)&osg::SpotLightBase::getSpotCutOff, return_value_policy< copy_const_reference >())
        .def("setDirection", &osg::SpotLightBase::setDirection)
        .def("setSpotExponent", &osg::SpotLightBase::setSpotExponent)
        .def("setSpotCutOff", &osg::SpotLightBase::setSpotCutOff)
        .def("getBinSize", &osg::SpotLightBase::getBinSize)
        .def("copyToBin", &osg::SpotLightBase::copyToBin)
        .def("copyFromBin", &osg::SpotLightBase::copyFromBin)
        .def("create", &osg::SpotLightBase::create)
        .def("createEmpty", &osg::SpotLightBase::createEmpty)
        .def("shallowCopy", &osg::SpotLightBase::shallowCopy)
        .staticmethod("getClassType")
        .staticmethod("create")
        .staticmethod("createEmpty")
        .staticmethod("getClassTypeId")
    );

    scope().attr("NextFieldId") = (int)osg::SpotLightBase::NextFieldId;
    scope().attr("DirectionFieldId") = (int)osg::SpotLightBase::DirectionFieldId;
    scope().attr("SpotCutOffFieldId") = (int)osg::SpotLightBase::SpotCutOffFieldId;
    scope().attr("SpotExponentFieldId") = (int)osg::SpotLightBase::SpotExponentFieldId;

    delete osg_SpotLightBase_scope;

    class_< osg::SpotLight, bases< osg::SpotLightBase > , boost::noncopyable, osg::SpotLightRefPtr >("SpotLight", no_init)
        //.def_readwrite("statNSpotLights", &osg::SpotLight::statNSpotLights)
        .def("setSpotDirection", &osg::SpotLight::setSpotDirection)
        .def("setSpotCutOffDeg", &osg::SpotLight::setSpotCutOffDeg)
        .def("getSpotCutOffDeg", &osg::SpotLight::getSpotCutOffDeg)
        .def("changed", &osg::SpotLight::changed)
        .def("makeChunk", &osg::SpotLight::makeChunk)
        .def("dump", &osg::SpotLight::dump, osg_SpotLight_dump_overloads_0_2())
    ;


    register_ptr_to_python<osg::SpotLightPtr>();
    implicitly_convertible<osg::SpotLightRefPtr, osg::SpotLightPtr>();
    implicitly_convertible<osg::SpotLightPtr, osg::PointLightPtr>();

    def("RefPtr", &pyopensg::ToRefPtr<osg::SpotLightPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::SpotLightPtr>);
}

